package com.lizhi.monitorserver.controller;

import com.lizhi.monitorserver.dto.Server;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/monitor/server")
public class MonitorServerController {

    @GetMapping()
    public Server getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return server;
    }
}
